<template>
  <div class="subpage">
    <my-head title="登录" :back="true" :login="true">
      <van-icon name="revoke" size="16" class="icon" />
    </my-head>
    <van-tabs v-model="active" color="#ff5f16" title-active-color="#ff5f16">
      <van-tab name='pass' title="密码登录">
          <loginpass></loginpass>
      </van-tab>
      <van-tab name='code' title="手机登录">
          <logincode></logincode>
      </van-tab>
    </van-tabs>
  </div>
</template>

<script>
import loginpass from './loginpass.vue'
import logincode from './logincode.vue'
export default {
    components: {
      loginpass,
      logincode  
    },
    name:'login',
    data () {
        return {
            active:'code'
        }
    }
}
</script>